package com.woniu.carrent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.carrent.pojo.TCarphoto;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TCarphotoMapper extends BaseMapper<TCarphoto> {
    // 根据 cdId（车辆详情ID）查询照片
    @Select("select * from t_carphoto where cdId=#{cdId}")
    List<TCarphoto> selectcarphoto(Integer cdId);
    @Delete("delete from t_carphoto where cdId=#{cdid}")
    boolean deleteByCdId( Integer cdid);
}
